import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/user/getList',
    method: 'get',
    params,
  })
}

export function getAction(params) {
  return request({
    url: '/user/getActionList',
    method: 'get',
    params,
  })
}

export function doEdit(data) {
  return request({
    url: '/user/doEdit',
    method: 'post',
    data,
  })
}
export function doDelete(data) {
  return request({
    url: '/user/doDelete',
    method: 'post',
    data,
  })
}

export function info(params) {
  return request({
    url: '/user/info',
    method: 'get',
    params,
  })
}

export function getSuggestionsList(params) {
  return request({
    url: '/suggestions/getList',
    method: 'get',
    params,
  })
}

export function doActionDelete(data) {
  return request({
    url: '/user/doActionDelete',
    method: 'post',
    data,
  })
}
